

// Initialization function for device, 
// Call Init_Device() from your main program 
void main(void) 
{ 
	unsigned int i; 
	unsigned char k[10]; 
	unsigned char iSeledMode=0; 
	unsigned int iaddress; 
	PCA_Init(); 
	Oscillator_Init(); 
	{ 
		FLASH_PageErase (FLASH_TEMP); 
		for(i=0;i<10;i++) 
		{ 
			iaddress=FLASH_TEMP+i+10; 
			FLASH_ByteWrite (iaddress, i); 
		} 

		for(i=0;i<10;i++) 
		{ 
			iaddress=FLASH_TEMP+i+10; 
			k[i]=FLASH_ByteRead (iaddress); 
		} 
		i = 0; 
		iaddress=FLASH_TEMP+iSeledMode*3+i; 
	} 
}